<template>
  <div class="resume-detail-evaluation info-group">
    <div class="info-group-title">
      自我评价
      <span class="info-group-action" type="primary" @click="isEdit = true"
        ><SvgIcon name="xiugai1" />编辑</span
      >
    </div>
    <div class="info-group-content">
      <div class="evaluation-desc" @edit="isEdit = true" v-if="!isEdit">
        {{ data }}
      </div>
      <EvaluationEdit :data="data" @edit="isEdit = false" v-else />
    </div>
  </div>
</template>

<script>
import EvaluationEdit from './EvaluationEdit'
export default {
  name: 'ResumeDetailEvaluation',
  components: { EvaluationEdit },
  props: {
    data: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      isEdit: false
    }
  }
}
</script>

<style lang="scss">
@import 'styles/common.scss';
.resume-detail-evaluation {
}
</style>
